FROM mysql:8.0.27
MAINTAINER Mr_He hellohesir@gmail.com

ENV MYSQL_ROOT_PASSWORD O9lRdLXTPvc90ut3XCMbQfcql4Wgrhp6KG
ENV LANG="en_US.utf8"
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo 'Asia/Shanghai' >/etc/timezone

COPY ./my.cnf /etc/mysql/mysql.conf.d/my.cnf
COPY ./sql/ /docker-entrypoint-initdb.d/


EXPOSE 3306